﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;

namespace Lamex.mMES.UI
{
    public partial class frmMES_Workshop_SeatingCells : FrmBaseDataCollection
    {
        public frmMES_Workshop_SeatingCells()
        {
            InitializeComponent();
        }

        private void frmMES_Workshop_SeatingCells_Load(object sender, EventArgs e)
        {

            pictureBox1.Image = Image.FromFile(@"\\Tx-fs10\tx-fs1\LAMEX\MES\SysSource\Image\Station\WS_S08.png");

            //frmSeatControlUI1.ShowProcessList("1", 200);
            //frmSeatControlUI2.ShowProcessList("2", 200);
            //frmSeatControlUI3.ShowProcessList("3", 200);
            //frmSeatControlUI4.ShowProcessList("4", 200);
            //frmSeatControlUI5.ShowProcessList("5", 200);
            //frmSeatControlUI6.ShowProcessList("6", 200);
        }

        private void frmMES_Workshop_SeatingCells_Resize(object sender, EventArgs e)
        {
            int pcBottom_W = this.pcBottom.Width;
            int intNum = 6;
            frmSeatControlUI1.Width = pcBottom_W / intNum;
            frmSeatControlUI2.Width = pcBottom_W / intNum;
            frmSeatControlUI3.Width = pcBottom_W / intNum;
            frmSeatControlUI4.Width = pcBottom_W / intNum;
            frmSeatControlUI5.Width = pcBottom_W / intNum;
            frmSeatControlUI6.Width = pcBottom_W / intNum;
        }

    }
}